package self_study;

public class jiechen {
    public static long jiechen(int n) {
        if (n == 1) {
            return 1;
        } else {
            return n*jiechen(n-1);
        }
    }

    public static void main(String[] args) {
        System.out.println(jiechen(10));
    }
}

